package com.go.where.family.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.go.where.family.dao.CustomerCommentDao;
import com.go.where.family.pojo.CustomerCommentInfo;

@Repository("customerCommentDao")
public class CustomerCommentDaoImpl extends
		BaseDaoImpl<CustomerCommentInfo, String> implements CustomerCommentDao {

	@Override
	public String getNameSpace() {
		return "mybatis.xml.CustomerCommentMapper";
	}

	@Override
	public String queryLastOneComment(String customerId) {
		return getSqlSession().selectOne(
				getNameSpace() + ".queryLastOneComment", customerId);
	}

	@Override
	public List<String> queryByTypeAndAid(CustomerCommentInfo comment) {
		return getSqlSession().selectList(getNameSpace() + ".queryByTypeAndAid", comment);
	}

}
